package com.his.drugstage.service.impl;

import com.his.drugstage.mapper.DrugPrescriptionMapper;
import com.his.drugstage.pojo.DrugInfo;
import com.his.drugstage.pojo.Prescription;
import com.his.drugstage.pojo.Register;
import com.his.drugstage.service.DrugPrescriptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;

@Service
public class DrugPrescriptionServiceImpl implements DrugPrescriptionService {
    @Autowired
    private DrugPrescriptionMapper prescriptionMapper;

    @Override
    public ArrayList<DrugInfo> selectPrescriptionDrugInfo(Register register) {
        return prescriptionMapper.selectPrescriptionDrugInfo(register);
    }

    @Override
    public int updateDrugState(Prescription prescription) {
        return prescriptionMapper.updateDrugState(prescription);
    }
}
